package com.qf.exception;

import com.qf.enums.ErrorMsgEnums;
import lombok.Getter;

@Getter
public class SsmModelException extends RuntimeException {

    private Integer code;

    public SsmModelException( Integer code,String message) {
        super(message);
        this.code = code;
    }
    public SsmModelException(ErrorMsgEnums errorMsgEnums) {
        super(errorMsgEnums.getMsg());
        this.code = errorMsgEnums.getCode();
    }
}
